﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FileTransferProtocol
{
    public class ReceiveSync
    {
        private object SyncObj = new object();
        private int _ReceiveCount = 0;
        public int ReceiveCount
        {
            get
            {
                lock(SyncObj)
                {
                    return _ReceiveCount;
                }

            }
            set
            {
                lock (SyncObj)
                {
                    _ReceiveCount = value;
                }
            }
        }
    }
}
